﻿using System.Web.Routing;
using Wayloop.Web.Mvc.Routing;


namespace Wayloop.Web.Mvc.Extensions
{
    public static class RoutingExtensions
    {
        public static IArea MapRootArea(this RouteCollection routes, string @namespace)
        {
            return MapArea(routes, "Root", @namespace);
        }


        public static IArea MapArea(this RouteCollection routes, string name, string @namespace)
        {
            return new Area(name, @namespace, routes);
        }
    }
}